package com.fuyao.cloud.personnel.api.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fuyao.cloud.common.data.mybatis.SearchCondition;
import com.fuyao.cloud.common.data.mybatis.SearchOp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 整改措施责任关联表
 *
 * @author pigx code generator
 * @date 2022-04-26 10:14:06
 */
@Data
@TableName("fy_problem_rectify_detailed")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "整改措施责任关联表")
public class ProblemRectifyDetailed extends Model<ProblemRectifyDetailed> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelIgnore
    @TableId
    @ApiModelProperty(value="主键")
    private Long id;

    /**
     * 租户ID
     */
    @ExcelIgnore
    @ApiModelProperty(value="租户ID")
    private Long tenantId;

    /**
     * 责任部门ID
     */
    @ExcelIgnore
    @ApiModelProperty(value="责任部门ID")
    private Long dutyOuid;

    /**
     * 责任部门名称
     */
    @HeadStyle
    @ExcelProperty(value="责任部门名称",index = 2)
    @ColumnWidth(20)
    @ApiModelProperty(value="责任部门名称")
    @SearchCondition(op = SearchOp.LIKE)
    private String dutyName;

    /**
     * 责任部门全名称
     */
    @HeadStyle
    @ExcelProperty(value="责任部门全名称",index = 3)
    @ColumnWidth(40)
    @ApiModelProperty(value="责任部门全名称")
    private String dutyFullname;

    /**
     * 责任人ID
     */
    @ExcelIgnore
    @ApiModelProperty(value="责任人ID")
    private Long dutyUserid;

    /**
     * 责任人名称
     */
    @HeadStyle
    @ExcelProperty(value="责任人名称",index = 1)
    @ColumnWidth(20)
    @SearchCondition(op = SearchOp.LIKE)
    private String dutyUsername;

    /**
     * 整改措施ID
     */
    @ExcelIgnore
    @ApiModelProperty(value="整改措施ID")
    private Long rectifyId;

    /**
     * 整改措施单号
     */
    @HeadStyle
    @ExcelProperty(value="整改措施单号",index = 0)
    @ColumnWidth(20)
    @ApiModelProperty(value="整改措施单号")
    @SearchCondition
    private String rectifyNum;

}
